package com.pureut.storage.controller;


import com.pureut.storage.domain.PickingSchemeRelation;
import com.pureut.storage.service.PickingSchemeRelationService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/***
 * 关联信息控制层
 * Author:C
 * Date:2022/12/22 10:31
 * @DESC
 */
@RestController
@RequestMapping("/picking-scheme-relation")
public class PickingSchemeRelationController extends BaseController {

    @Resource
    PickingSchemeRelationService pickingSchemeRelationService;

    /**
     * 关联信息分页列表
     */
    @GetMapping("/list/{id}")
    public TableDataInfo<PickingSchemeRelation> getList(@PathVariable("id") Long id, PageQuery pageQuery) {
        //查询关联信息列表
        return pickingSchemeRelationService.getRelationList(id, pageQuery);
    }
}
